﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<%@ Import Namespace="VietPublisher.Repositories.Interface" %>
<%

    ICategoryRepository cate = new CategoryRepository();
    //List<VietPublisher.BSL.BK.T_BK_Category> categories = cate..GetCategoryCustomer();
    List<VietPublisher.BSL.BK.T_BK_Category> categories = cate.GetCategoryAdmin();
    int a = 5;
    a++;
    
%>
<%--<div class="Clearfix">
    <ul class="mainmenu">
        <%foreach (var category in categories)
          {
              
        %>       
        <li><a href="/<%=category.MenuURL%>"> <%=category.CategoryName %>  </a> </li>        
         <%
      } %>
    </ul>
</div>--%>


<div class="Clearfix">
    <ul class="topnav">
           
            <li class="li_main">
                <a href="/Book/Booklist">Book</a>
                <ul class="subnav">
                    <li><a href="/Book/create">Add New Book</a></li> 
                </ul>
            </li>
            <li class="li_main">
                <a href="/Order/OrderList">Order</a>                
            </li>
            <li class="li_main"><a href="/Category/CategoryList">Category</a></li>

            <li class="li_main"><a href="/Author/AuthorList">Author</a></li>
            <li class="li_main"><a href="/Publisher/PublisherList">Publisher</a></li>
            <li class="li_main"><a href="/Account/AccountList">Account</a></li>
        </ul>
</div>